package com.joker.coupon.remote;

import com.joker.common.core.constant.ServiceNameConstants;
import com.joker.common.core.domain.Result;
import com.joker.coupon.domain.PmsCoupon;
import com.joker.coupon.remote.factory.PmsCouponRemoteFallbackFactory;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author lemon
 * @date 2024/12/29 15:07
 **/
@FeignClient(contextId = "remoteCouponService", value = ServiceNameConstants.COUPON_SERVICE,fallbackFactory = PmsCouponRemoteFallbackFactory.class)
public interface IPmsCouponRemoteService {

    @GetMapping("/coupon/selectCouponByCart/{skuId}")
    public Result<List<PmsCoupon>> selectCouponByCart(@PathVariable(name = "skuId") Long skuId);

}
